package cn.ibizlab.odoo.core.odoo_crm.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_crm.domain.Crm_team;
import cn.ibizlab.odoo.core.odoo_crm.filter.Crm_teamSearchContext;

/**
 * 实体[Crm_team] 服务对象接口
 */

public interface ICrm_teamService{
     Crm_team get(Integer id) ;
     Crm_team get(Crm_team crm_team) ;
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     void createBatch(List<Crm_team> crm_teams, int batchSize) ;
     boolean update(Crm_team crm_team) ;
     boolean remove(Integer id) ;
     boolean create(Crm_team crm_team) ;
     void updateBatch(List<Crm_team> crm_teams, int batchSize) ;

    /**
     * 查询集合 默认查询
     */
    Page<Crm_team> searchDefault(Crm_teamSearchContext context) ;

    /**
     * 根据EMail别名查询
     */
     Page<Crm_team> selectByOdoo_alias(Integer id) ;

    /**
     * 根据公司查询
     */
     Page<Crm_team> selectByOdoo_company(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Crm_team> selectByOdoo_create(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Crm_team> selectByOdoo_user(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Crm_team> selectByOdoo_write(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Crm_team convert2Domain(cn.ibizlab.odoo.core.client.model.Icrm_team model ,Crm_team domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Icrm_team convert2Model(Crm_team domain , cn.ibizlab.odoo.core.client.model.Icrm_team model);

}
